/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUSINESS_LAYER;

/**
 *
 * @author cmerino
 */

import java.util.ArrayList;
import java.util.Iterator;


/**
 *
 * @author Administrador
 */

class classNodoProp
{
    private String strNombre;
    private String strValor;
    

    public classNodoProp(String strNombre, String strValor) {
        this.strNombre = strNombre;
        this.strValor = strValor;
    }

    public String getNombre() {
        return strNombre;
    }

    public String getValor() {
        return strValor;
    }
    
    
}


public class classPropertie {

    private ArrayList<classNodoProp> alstProperties;

    public classPropertie() {
        
        this.alstProperties = new ArrayList<classNodoProp>();
        this.setPropertiesWindows01();
    }
    
    
    private void setPropertiesWindows01()
    {
        this.alstProperties.add(new classNodoProp("PropPath:estanques.log",     "C:\\TMP\\estanques.log"));
        //this.alstProperties.add(new classNodoProp("PropPath:prueba.html",       "F:\\PROGRAMAS\\java\\estanques\\src\\Ayuda\\HTML\\prueba.html"));
        this.alstProperties.add(new classNodoProp("PropPath:prueba.html",       "G:\\RESPALDOS_OPTIMISA\\TESIS MV\\PROGRAMAS\\JAVA\\estanques\\src\\Ayuda\\HTML\\prueba.html"));
        
    }
    
    
    public String getPropertie(String strCodProp)
    {
        Iterator it = this.alstProperties.iterator();
        classNodoProp nodo;
        
        while (it.hasNext())
        {
            nodo = (classNodoProp)it.next();
            if (strCodProp.equals(nodo.getNombre()))
            {
                return nodo.getValor();
            }
        }
        return "";
    }
  
}

